<?php

namespace App\Models;


use Illuminate\Database\Eloquent\SoftDeletes;

class PhonicsShare extends BaseModels
{
    use SoftDeletes;

    protected $table = 'phonics_share';
    protected $primaryKey = 'id';
    protected $dates = ['deleted_at'];

    const FIRST_SHARE_LOWER_LIMITS = 2.5;
    const FIRST_SHARE_UPPER_LIMITS = 3.5;
    const OTHER_SHARE_LOWER_LIMITS = 0.8;
    const OTHER_SHARE_UPPER_LIMITS = 1.2;

    public function getId()
    {
        return $this->id;
    }

    public function getStudentId()
    {
        return $this->student_id;
    }

    public function setStudentId($value)
    {
        $this->student_id = $value;
    }

    public function getShareTicket()
    {
        return $this->share_ticket;
    }

    public function setShareTicket($value)
    {
        $this->share_ticket = $value;
    }

    public function getOpenGid()
    {
        return $this->open_gid;
    }

    public function setOpenGid($value)
    {
        $this->open_gid = $value;
    }

    public function getBonus()
    {
        return floatval($this->bonus);
    }

    public function setBonus($value)
    {
        $this->bonus = $value;
    }

    public function getCreatedAt()
    {
        return $this->created_at;
    }
}